package com.smartwork.common.mobile.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * 响应数据模型
 * 
 * @author tangjian
 * 
 */
public class BaseResponseData {
	
	private String protocol; // 协议版本
	
	private String message; // 提示信息
	
	/** 返回状态码，目前200表示成功，其他只返回message字段，说明失败原因 **/
	private int code;
    //响应数据
    private Object data;
    //响应时间
    private long  st;
	
	// 扩展字段
	private Map<String, String> extra = new HashMap<String, String>();


	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getCode() {
		return code;
	}

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setCode(int code) {
		this.code = code;

	}

	public Map<String, String> getExtra() {
		return extra;
	}

	public void setExtra(Map<String, String> extra) {
		this.extra = extra;
	}

    public long getSt() {
        return st;
    }

    public void setSt(long st) {
        this.st = st;
    }
}
